package com.anzhen.interview.file;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class WeiteFile {
    public static void main(String[] args) throws IOException {
        String line = "ID,10000184134,265505,bankd,PLATFORM,,001-002-004,847117,993227.60,-2.00,322,2017-09-05 20:59:13.270000,2017-09-05 20:59:13.252000,,,,,20170905205555,81e7b391244b49f59d4986a346a79575,0,0,c505d49e21eb4e71aea44aeb76d9419f\n";
        File file = new File("data.csv");
        int id = 426149;
        for (int i = 0; i < 100000; i++) {
            FileUtils.writeStringToFile(file, line.replace("ID", "" + id + i), "UTF8", true);
        }
    }
}
